package com.hyh.rocketmq.config;

import com.hyh.rocketmq.helper.RocketMqHelper;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * RocketMq AutoConfiguration
 *
 * @Author: heyuhua
 * @Date: 2021/1/28 16:02
 */
@ConditionalOnWebApplication
@Configuration(proxyBeanMethods = false)
public class HyhRocketMqAutoConfiguration {

    @Bean
    public RocketMqHelper rocketMqHelper() {
        return new RocketMqHelper();
    }

}
